import math

a = eval(input('a='))
print("{:.2f}".format(math.cos(50) + math.sqrt(37.5) / (a + 1)))


